<?php

class auditoriasReprogramacionModel extends Model3
{
    public function __construct() {
        parent::__construct('adic.folio_fecha');
    }
    
    public function getReprogramaciones($class){
        $res = array();
        
        $data = $this->lista("
            SELECT *
            FROM adic.folio_fecha
            WHERE adic.folio_fecha.class = '$class'
            ORDER BY adic.folio_fecha.proj_id DESC
        ");
        
        foreach ($data as $dat){
            $res [$dat['proj_id']][]= $dat;
        }
        
        return $res;
    }
}
?>
